<?php	class debug	{		private $_switch = false, $_output = null;				public function __construct($switch)		{			$this->_switch = $switch;			$this->_output .= '<pre>' . "\n";		}				public function response($str)		{			$this->_output .= $str . "\n";		}				public function __destruct()		{			$this->_output .= '</pre>' . "\n";						if ( $this->_switch )			{				echo $this->_output;			}		}	}